Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix ci cacheing to use recently built caches #4

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

kormide
Copy link
Contributor

@kormide kormide commented Jan 17, 2022

@alexeagle

Github actions caches don't update already existing caches, so the cache that gets loaded could be old. This sets a new cache using a cache key derived from a hash of files. The use of restore-keys: bazel-cache- will find the most recent cache stored scoped to this branch or a parent branch.

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@kormide
Copy link
Contributor Author

kormide commented Jan 19, 2022

Updated. @alexeagle I wrote a more verbose (but hopefully clearer) explanation. @f0rmiga I removed the cache location flags outside of the bazelrc file as it doesn't support environment variables.

@kormide kormide requested a review from alexeagle January 19, 2022 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants